package four;

public class Land {
    public static void main(String[] args) {
        Village zhaoZhuang = new Village("赵庄", 80);
        Village maJiaHeZi = new Village("马家河子", 120);

        Village.setWaterAmount(200);
        System.out.println("水井中有 " + Village.getWaterAmount() + " 升水");

        zhaoZhuang.drinkWater(50);
        maJiaHeZi.checkWater();

        maJiaHeZi.drinkWater(100);
        zhaoZhuang.checkWater();

        System.out.println(zhaoZhuang.getName() + "的人口：" + zhaoZhuang.getPopulation());
        System.out.println(maJiaHeZi.getName() + "的人口：" + maJiaHeZi.getPopulation());
    }
}
